package lab02.test9;

public class Student {
    private String studentId;
    private String classId;
   private String name;
    private String sex;
   private int age;
Student(){

}
    public Student(String studentId, String classId, String name, String sex, int age) {
        this.studentId = studentId;
        this.classId = classId;
        this.name = name;
        this.sex = sex;
        this.age = age;
    }

    public String getStudentId() {
        return studentId;
    }

    public void setStudentId(String studentId) {
        this.studentId = studentId;
    }

    public String getClassId() {
        return classId;
    }

    public void setClassId(String classId) {
        this.classId = classId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return studentId+" "+classId+" "+name+" "+sex+" "+age;
    }
}
